//
//  NetWorkCall.h
//  NetWorkManager
//
//  Created by FeiXiang on 16/12/8.
//  Copyright © 2016年 飞翔. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef void(^ UploadProgress)(int64_t bytesProgress,int64_t totalProgress);

@interface NetWorkCall : NSObject

/**
get请求
 */
+(void)getRequestWithURL:(NSString *)urlString param:(NSDictionary *)param success:(void(^)(id responeObject))success  failure:(void(^)(NSError *error))failure;
/**
 post请求
 */
+(void)postRequestWithURL:(NSString *)urlString param:(NSDictionary *)param success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;

/**
 上传图片
 
 支持单张和多张图片的上传
 imageArray 需要上传的图片数组
 fileName   图片名称,如果不传的话就会以当前的时间命名
 names  上传图片时的参数数组
 */

+(void)uploadImageWithArray:(NSArray *)imageArray url:(NSString *)urlString fileName:(NSString *)fileName names:(NSArray *)namesArray param:(NSDictionary *)param progress:(UploadProgress)uploadProgress success:(void(^)(id responseObject))success  failure:(void(^)(NSError *error)) failure;




@end
